/**
 * 
 */
package org.xserver.runtime.jetty.command;

import java.util.Enumeration;
import java.util.Properties;

import org.xserver.annotation.PerformanceLog;
import org.xserver.annotation.VisitorLog;

/**
 * @author jkonopka
 * 
 */
public class SettingsDefaultInitializeCommand extends AbstractSettingsInitializeCommand {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8062056048137804690L;

	/**
	 * @param properties
	 */
	public SettingsDefaultInitializeCommand(final Properties properties) {
		super(properties);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.xserver.core.command.ICommand#execute()
	 */
	@Override
	@VisitorLog
	@PerformanceLog
	public void execute() throws Exception {
		final Enumeration<String> keys = getBundle().getKeys();
		while (keys.hasMoreElements()) {
			final String key = keys.nextElement();
			getProperties().put(key, getBundle().getString(key));
		}
	}

}
